home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
graphicsUndo.subproj
/
ResizeGraphicsChange.m
< prev
next >
Wrap
Text File
|
1992-02-09
|
855b
|
51 lines
#import "drawundo.h"
@interface ResizeGraphicsChange(PrivateMethods)
- undoDetails;
- redoDetails;
@end
@implementation ResizeGraphicsChange
- initGraphicView:aGraphicView graphic:aGraphic
{
[super initGraphicView:aGraphicView];
graphic = aGraphic;
return self;
}
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Resize", NULL, "The operation of changing the size of a graphical entity by dragging a corner of it with the mouse.");
}
- saveBeforeChange
{
graphics = [[List alloc] init];
[graphics addObject:graphic];
[graphic getBounds:&oldBounds];
return self;
}
- changeDetailClass
{
return nil;
}
- undoDetails
{
[graphic getBounds:&newBounds];
[graphic setBounds:&oldBounds];
return self;
}
- redoDetails
{
[graphic setBounds:&newBounds];
return self;
}
@end